//
//  BaseXmlModel.h
//  ymall
//
//  Created by yuike6 yuike6 on 12-2-6.
//  Copyright (c) 2012年 yuike. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "mcf.h"

@interface BaseXmlModel : NSObject
{
    NSString*   nodeID_;
    NSString    * version_;
    NSString      * date_;   
    
    NSString    * name_;
    NSString    * description_;
    
    XMLParsedTree * xmlTree_;
    
    NSString * filePath_;
}

@property (nonatomic, copy) NSString* nodeID;
@property (nonatomic, copy)     NSString    * version;
@property (nonatomic, copy)   NSString      * date;

@property (nonatomic, copy)     NSString    * name;
@property (nonatomic, copy)     NSString    * description;

@property (nonatomic, retain) XMLParsedTree * xmlTree;
@property (nonatomic, strong) NSString * filePath;

-(id) initWithXmlLocalPath:(NSURL *) xmlLocalPath;

-(id) initWithXmlTree:(XMLParsedTree *) tree;

- (id) initWithData:(NSData *) data;

-(BOOL) isParsedOk;
@end
